package at.fhooe.stefanirndorfer.walls;

import static org.lwjgl.opengl.GL11.GL_QUADS;
import static org.lwjgl.opengl.GL11.glBegin;
import static org.lwjgl.opengl.GL11.glColor3f;
import static org.lwjgl.opengl.GL11.glEnd;
import static org.lwjgl.opengl.GL11.glVertex2d;
import at.fhooe.stefanirndorfer.entity.Entity;

public class Wall extends Entity {
	
	
	

	private static final float[] COLOR = new float[]{0.5f, 0.5f, 0.5f};

	public Wall(int width, int height, double posX, double posY) {
		super(width, height, posX, posY);

	}

	@Override
	public void update(int delta) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public double[] getPosition() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void render() {
		glColor3f(COLOR[0], COLOR[1], COLOR[2]);

		glBegin(GL_QUADS);
		glVertex2d(posX, posY);
		glVertex2d(posX, posY - height);
		glVertex2d(posX + width, posY - height);
		glVertex2d(posX + width, posY);
		glEnd();
		
	}

}
